/*
 * Copyright 2008 Carnegie Mellon University
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package edu.cmu.lti.sepia.task.nlp.japanese;

public class HankakuToZenkakuConverter {

	public static String convert(String text) {
		
		text = text.replaceAll("A","Ａ");
		text = text.replaceAll("B","Ｂ");
		text = text.replaceAll("C","Ｃ");
		text = text.replaceAll("D","Ｄ");
		text = text.replaceAll("E","Ｅ");
		text = text.replaceAll("F","Ｆ");
		text = text.replaceAll("G","Ｇ");
		text = text.replaceAll("H","Ｈ");
		text = text.replaceAll("I","Ｉ");
		text = text.replaceAll("J","Ｊ");
		text = text.replaceAll("K","Ｋ");
		text = text.replaceAll("L","Ｌ");
		text = text.replaceAll("M","Ｍ");
		text = text.replaceAll("N","Ｎ");
		text = text.replaceAll("O","Ｏ");
		text = text.replaceAll("P","Ｐ");
		text = text.replaceAll("Q","Ｑ");
		text = text.replaceAll("R","Ｒ");
		text = text.replaceAll("S","Ｓ");
		text = text.replaceAll("T","Ｔ");
		text = text.replaceAll("U","Ｕ");
		text = text.replaceAll("V","Ｖ");
		text = text.replaceAll("W","Ｗ");
		text = text.replaceAll("X","Ｘ");
		text = text.replaceAll("Y","Ｙ");
		text = text.replaceAll("Z","Ｚ");
		text = text.replaceAll("a","ａ");
		text = text.replaceAll("b","ｂ");
		text = text.replaceAll("c","ｃ");
		text = text.replaceAll("d","ｄ");
		text = text.replaceAll("e","ｅ");
		text = text.replaceAll("f","ｆ");
		text = text.replaceAll("g","ｇ");
		text = text.replaceAll("h","ｈ");
		text = text.replaceAll("i","ｉ");
		text = text.replaceAll("j","ｊ");
		text = text.replaceAll("k","ｋ");
		text = text.replaceAll("l","ｌ");
		text = text.replaceAll("m","ｍ");
		text = text.replaceAll("n","ｎ");
		text = text.replaceAll("o","ｏ");
		text = text.replaceAll("p","ｐ");
		text = text.replaceAll("q","ｑ");
		text = text.replaceAll("r","ｒ");
		text = text.replaceAll("s","ｓ");
		text = text.replaceAll("t","ｔ");
		text = text.replaceAll("u","ｕ");
		text = text.replaceAll("v","ｖ");
		text = text.replaceAll("w","ｗ");
		text = text.replaceAll("x","ｘ");
		text = text.replaceAll("y","ｙ");
		text = text.replaceAll("z","ｚ");
		text = text.replaceAll("0","０");
		text = text.replaceAll("1","１");
		text = text.replaceAll("2","２");
		text = text.replaceAll("3","３");
		text = text.replaceAll("4","４");
		text = text.replaceAll("5","５");
		text = text.replaceAll("6","６");
		text = text.replaceAll("7","７");
		text = text.replaceAll("8","８");
		text = text.replaceAll("9","９");
		
		return text;
	}
	
}
